<%--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>

    <title>培训管理</title>

    <link href="../../css/mine.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<style>
    .tr_color {
        background-color: #9F88FF
    }
</style>
<div class="div_head">
            <span>
                <span style="float: left;">当前位置是：培训管理-》培训计划</span>
                <span style="float: right; margin-right: 8px; font-weight: bold;">
                    <a style="text-decoration: none;" href="/peixun/peixunjihua/add.jsp">【新增培训计划】</a>
                </span>
            </span>
</div>
<div></div>
<div class="div_search">
            <span>
                <form action="/peixun/peixunjihua/findall" method="post">
                    培训名称: 
					<input type="text" name="trainingname" value="${trainingname}"/>
					 审核状态:
					<select name="optionselect" id="optionselect">
						<option value="请选择">--请选择--</option>

                        <c:forEach items="${options}" var="option">
                            <option value="${option}"     <c:if test="${option==optionselect}">selected</c:if>>${option}</option>
                        </c:forEach>

					</select>
					培训时间:
					<input type="date" name="trainingdateStart" value="${trainingdateStart}"/>至<input type="date" name="trainingdateEnd"
                                                                                            value="${trainingdateEnd}"/>
                    <input value="查询" type="submit"/>
					
                </form>
            </span>
</div>
<div style="font-size: 13px; margin: 10px 5px;">
    <table class="table_a" border="1" width="100%">
        <tbody>
        <tr style="font-weight: bold;">
            <td width="">培训名称</td>
            <td width="15%">培训讲师</td>
            <td width="15%">培训时间</td>
            <td>培训反馈</td>
            <td width="15%">审核状态</td>
            <td align="center" width="15%">操作</td>
        </tr>
        <c:forEach var="training" items="${pageInfo.list}">
            <tr id="product1">
                <td name="trainingname">${training.trainingname}</td>
                <td name="trainingteacher">${training.trainingteacher}</td>
                <td name="trainingdate"><fmt:formatDate value="${training.trainingdate}"/></td>
                <td name="trainingfeedback">${training.trainingfeedback}</td>
                <td name="auditopinion">${training.auditopinion}</td>
                <td>
                    <c:if test="${training.auditopinion=='审核通过'}">
                        <a href="/peixun/peixunfankui/fankui?id=${training.id}&method='jihuafankui'">培训反馈</a>
                    </c:if>
                    <c:if test="${training.auditopinion=='起草'}">
                        <a href="/peixun/peixunjihua/findTrainingByIdUpdate?id=${training.id}">修改</a>
                        <a href="/peixun/peixunjihua/findTrainingByIdMinxi?id=${training.id}">明细</a>
                        <a href="/peixun/peixunjihua/deleteTrainingById?id=${training.id}">删除</a>
                    </c:if>
                    <c:if test="${training.auditopinion=='审核中'}">
                        <a href="/peixun/peixunjihua/findTrainingByIdMinxi?id=${training.id}">明细</a>
                    </c:if>
                </td>
            </tr>
        </c:forEach>
        <c:set var="pageNum" value="${pageInfo.pageNum}"/>
        <c:set var="pages" value="${pageInfo.pages}"/>
        <c:set var="total" value="${pageInfo.total}"/>
        <c:set var="prePage" value="${pageInfo.prePage}"/>
        <c:set var="nextPage" value="${pageInfo.nextPage}"/>
        <tr>
            <td colspan="20" style="text-align: center;">
                <a href="/peixun/peixunjihua/findall?trainingname=${trainingname}&optionselect=${optionselect}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}">首页</a>
                <a href="/peixun/peixunjihua/findall?index=${prePage==0?1:prePage}&trainingname=${trainingname}&optionselect=${optionselect}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}">上一页</a>
                <c:forEach begin="1" end="${pages}" var="i">
                    <c:if test="${i==pageNum}">
                        <a href="/peixun/peixunjihua/findall?index=${i}&trainingname=${trainingname}&optionselect=${optionselect}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}">${i}</a>
                    </c:if>
                    <c:if test="${i!=pageNum}">
                        <a href="/peixun/peixunjihua/findall?index=${i}&trainingname=${trainingname}&optionselect=${optionselect}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}" style="text-decoration: none">${i}</a>
                    </c:if>
                </c:forEach>
                <a href="/peixun/peixunjihua/findall?index=${nextPage==0?pages:nextPage}&trainingname=${trainingname}&optionselect=${optionselect}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}"
                   onclick="return ${nextPage!=0} " >下一页</a>
                <a  href="/peixun/peixunjihua/findall?index=${pages}&trainingname=${trainingname}&optionselect=${optionselect}&trainingdateStart=${trainingdateStart}&trainingdateEnd=${trainingdateEnd}">尾页</a>
                共${total}条 每页显示 ${pageNum}/${pages}
            </td>
        </tr>
        </tbody>
    </table>
</div>
</body>
</html>